﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FindIndex
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] array = {12,34,64,64,75};
            String result = isExist(array,32);
            Console.WriteLine(result);
            Console.ReadKey();
        }
        static String isExist(int[] array, int element)
        {
            string result = "对不起，您要找的值在数组中没有";
            for (int i = 0; i <array.Length; i++)
            {
                if (array[i]==element)
                {
                    result = "恭喜您，您要的值在数组中存在";
                    break;
                }
            }
            return result;
        }
    }
}
